package com.vf.admin.client.service.impl;

import com.vf.admin.client.dao.SSAreaDao;
import com.vf.admin.client.service.SsAreaService;
import com.vf.admin.miaodong.entity.SsArea;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 市
 */
@Service
public class SsAreaServiceImpl implements SsAreaService {

    @Autowired
    SSAreaDao ssAreaDao;

    @Override
    public List<SsArea> list() {
        return ssAreaDao.list();
    }

    @Override
    public SsArea get(Integer id) {
        return ssAreaDao.get(id);
    }

    @Override
    public void save(SsArea haoYou) {
        ssAreaDao.save(haoYou);
    }

    @Override
    public void del(Integer id) {
        ssAreaDao.del(id);
    }

    @Override
    public List<SsArea> findByParentId(Integer parentId) {
        return ssAreaDao.findByParentId(parentId);
    }

}
